﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FieldTools.Client.Model.Window
{
    /// <summary>
    /// xml主键数据模型
    /// </summary>
    public class XMLModel
    {
        /// <summary>
        /// 访问网址
        /// </summary>
        public string? Url { get; set; }
        /// <summary>
        /// 节点路径
        /// </summary>
        public string? Path { get; set; }
        ///// <summary>
        ///// 网页源码
        ///// </summary>
        //public string? SourceDoc { get; set; }
        ///// <summary>
        ///// 抓取后的源码
        ///// </summary>
        //public string? ShowDoc { get; set; }
        /// <summary>
        /// 读取类型，1 InnerHtml,2 OuterHtml,3 InnerText
        /// </summary>
        public int? Type { get; set; }
        /// <summary>
        /// 源码获取类型,1 url, 2 网页
        /// </summary>
        public int? SourceType { get; set; }
        /// <summary>
        /// 抓取路径类型,1 xpath, 2 selectors
        /// </summary>
        public int? PathMode { get; set; }
        /// <summary>
        /// 抓取属性
        /// </summary>
        public string? Attributes { get; set; }
    }
}
